
package sk.lieskove.jianghongtiao.aresapi.response.obj;

/**
 * <p>Java class for vystup_format.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="vystup_format">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="XML"/>
 *     &lt;enumeration value="HTML"/>
 *     &lt;enumeration value="XHTML"/>
 *     &lt;enumeration value="TEXT"/>
 *     &lt;enumeration value="jenIC"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
public enum VystupFormat {

    XML("XML"),
    HTML("HTML"),
    XHTML("XHTML"),
    TEXT("TEXT"),
    JEN_IC("jenIC");
    private final String value;

    VystupFormat(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static VystupFormat fromValue(String v) {
        for (VystupFormat c: VystupFormat.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
